<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<title>导航菜单</title>
<%@ include file="/WEB-INF/jsp/public/commons.jspf"%>
<link type="text/css" rel="stylesheet" href="style/blue/menu.css" />
<script type="text/javascript">
	function menuClick(menu) {
		$(menu).next().toggle();
	}
	$(function (){
	 $("#secondgoods").hide();
	  $("#secondstorage").hide();
	   $("#secondreport").hide();
	});
</script>
</head>

<body style="margin: 0">
	<div id="Menu">

		<ul id="MenuUl">
			<%-- 显示一级菜单 --%>
			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="user_info" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="user_info" target="right">个人管理</s:a>
				</div></li>

			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="notice_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="notice_list" target="right">公告管理</s:a>
				</div></li>


			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="goods_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="goods_list" target="right">商品管理</s:a>
				</div>
				<div id="secondgoods">
					<ul style="" class="MenuLevel2" id="aa">
						<li class="level2">
							<div class="level2Style">
								<img src="style/images/MenuIcon/menu_arrow_single.gif" />
								<s:a action="goods_list" target="right">商品管理</s:a>
							</div>
						</li>
						<li class="level2">
							<div class="level2Style">
								<img src="style/images/MenuIcon/menu_arrow_single.gif" />
								<s:a action="goods_CateSearchlist" target="right">商品分类管理</s:a>
							</div>
						</li>
					</ul>
				</div>
			</li>


			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="supplier_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="supplier_list" target="right">供应商管理</s:a>
				</div></li>

			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="storage_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="storage_list" target="right">库存管理</s:a>
				</div>
				<div id="secondstorage">
						<ul style="" class="MenuLevel2" id="aa">
							<li class="level2">
								<div class="level2Style">
									<img src="style/images/MenuIcon/menu_arrow_single.gif" />
									<s:a action="storage_caozuo?dealType=1" target="right">上架</s:a>
								</div>
							</li>
							<li class="level2">
								<div class="level2Style">
									<img src="style/images/MenuIcon/menu_arrow_single.gif" />
									<s:a action="storage_caozuo?dealType=2" target="right">下架</s:a>
								</div>
							</li>
							<li class="level2">
								<div class="level2Style">
									<img src="style/images/MenuIcon/menu_arrow_single.gif" />
									<s:a action="storage_caozuo?dealType=3" target="right">进货</s:a>
								</div>
							</li>
							<li class="level2">
								<div class="level2Style">
									<img src="style/images/MenuIcon/menu_arrow_single.gif" />
									<s:a action="storage_caozuo?dealType=4" target="right">退货</s:a>
								</div>
							</li>
						</ul>
			</div>
			</li>
			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="user_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="user_list" target="right">员工管理</s:a>
				</div></li>

			<li class="level1">
				<div onClick="menuClick(this);" class="level1Style">
					<s:a action="goods_list" target="right">
						<img src="style/images/MenuIcon/1.gif" class="Icon" />
					</s:a>
					<s:a action="report_returnGoodsUI" target="right">报表统计</s:a>
				</div>
				<div id="secondreport">
					<ul style="" class="MenuLevel2" id="aa">
						<li class="level2">
							<div class="level2Style">
								<img src="style/images/MenuIcon/menu_arrow_single.gif" />
								<s:a action="order_list" target="right">单据信息</s:a>
							</div>
						</li>
					<li class="level2">
							<div class="level2Style">
								<img src="style/images/MenuIcon/menu_arrow_single.gif" />
								<s:a action="report_returnGoodsUI" target="right">年进货消费统计</s:a>
							</div>
						</li>
					</ul>
				</div>
			</li>





					<%-- 显示一级菜单 
				<s:iterator value="#application.topPrivilegeList">
					<s:if test="#session.user.hasPrivilegeByName(name)">
					<li class="level1">
						<div onClick="menuClick(this);" class="level1Style">
							<img src="style/images/MenuIcon/${id}.gif" class="Icon" />
							${name}
						</div>
						<ul style="" class="MenuLevel2" id="aa">
							显示二级菜单
							<s:iterator value="children">
								<s:if test="#session.user.hasPrivilegeByName(name)">
								<li class="level2">
									<div class="level2Style">
										<img src="style/images/MenuIcon/menu_arrow_single.gif" />
										<a target="right" href="${pageContext.request.contextPath}${url}.action"> ${name}</a>
									</div>
								</li>
								</s:if>
							</s:iterator>
						</ul> 
					</li>
					</s:if>
				</s:iterator> --%>
				</ul>
	</div>
</body>
</html>